#ifndef MULTI_LINE_LIDAR_H
#define MULTI_LINE_LIDAR_H

#include <iostream>
using namespace std;
#include <string.h>
#include<fstream>
#include "chassis.h"

// 多线激光雷达（1个）
class Multi_line_lidar
{
public:
    void setModel(string _model);
    void setChannels(int _channels);
    void setTest_range(int _tes_range);
    void setPower_consumption(int _power_consumption);

    void print ();
    void save (string path);
    
    void add(Chassis* m_chassis){
        subscriber_chassis=m_chassis;
    }
    void notify(int message) {
        subscriber_chassis->update(message);
    }


private:
    string model="RS-Helios-16p";
    int channels=16;
    int test_range=100;
    int power_consumption=8;

    Chassis *subscriber_chassis;
};

#endif // MULTI_LINE_LIDAR_H
